package com.meixiang.entity.servicOrder;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 服务订单预约详情
 * Created by xyj on 2016/5/30.
 */
public class ServiceOrderDetial implements Parcelable {

    private String gcId; // 1 预约 2 医美 3 医旅 4 基因检测 5 培训"
    private String typeId; //1 服务，2培训
    private String orderId; //订单编号
    private String orderSn; //订单号
    private String goodsId; //商品编号
    private String goodsName; //商品名称
    private String goodsPrice; //商品价格
    private String goodsImage; // 商品图片
    private String goodsNum; //商品数量
    private String sellerState;//店铺 审核状态 1审核中 2同意 3拒绝
    private String refundState;
    private String refundId; //退款单号
    private String paymentState; //支付状态 待付款0/已付款 1
    private String orderState; //订单状态：0:已取消;10:待付款;20:待使用;30:已使用;40:交易完成;50:已提交;60:已确认;
    private List<String> servicePwd; //服务密码
    private String evaluationStatus;
    private String grade;
    private String beauticianId; // 美容师ID
    private String photoImage; //美容师照片
    private String name; //美容师名字
    private String address; //服务地址
    private String serviceTime; //服务时间
    private String remark; //买家留言
    private String createTime; //订单创建时间
    private String paymentTime; //订单支付时间
    private String couponPrice; //优惠券价格
    private String orderTotalPrice; //订单总价
    private String orderAmount; //订单应付总金额 实际付款金额
    private String storeId; //店铺编号
    private String storeName; //店铺名称
    private String storeTel; //电话
    private String isMainStore; // 1总店 0加盟店

    public String getEvaluationStatus() {
        return evaluationStatus == null ? "" : evaluationStatus;
    }

    public void setEvaluationStatus(String evaluationStatus) {
        this.evaluationStatus = evaluationStatus;
    }

    public String getGrade() {
        return grade == null ? "" : grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getGcId() {
        return gcId == null ? "" : gcId;
    }

    public void setGcId(String gcId) {
        this.gcId = gcId;
    }

    public String getSellerState() {
        return sellerState == null ? "" : sellerState;
    }

    public void setSellerState(String sellerState) {
        this.sellerState = sellerState;
    }

    public String getRefundState() {
        return refundState == null ? "" : refundState;
    }

    public void setRefundState(String refundState) {
        this.refundState = refundState;
    }

    public String getRefundId() {
        return refundId == null ? "" : refundId;
    }

    public void setRefundId(String refundId) {
        this.refundId = refundId;
    }

    public String getIsMainStore() {
        return isMainStore == null ? "" : isMainStore;
    }

    public void setIsMainStore(String isMainStore) {
        this.isMainStore = isMainStore;
    }

    public String getTypeId() {
        return typeId == null ? "" : typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getCouponPrice() {
        return couponPrice == null ? "" : couponPrice;
    }

    public void setCouponPrice(String couponPrice) {
        this.couponPrice = couponPrice;
    }

    public String getOrderId() {
        return orderId == null ? "" : orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderSn() {
        return orderSn == null ? "" : orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public String getGoodsId() {
        return goodsId == null ? "" : goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName == null ? "" : goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsPrice() {
        return goodsPrice == null ? "" : goodsPrice;
    }

    public void setGoodsPrice(String goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getGoodsImage() {
        return goodsImage == null ? "" : goodsImage;
    }

    public void setGoodsImage(String goodsImage) {
        this.goodsImage = goodsImage;
    }

    public String getGoodsNum() {
        return goodsNum == null ? "" : goodsNum;
    }

    public void setGoodsNum(String goodsNum) {
        this.goodsNum = goodsNum;
    }

    public String getPaymentState() {
        return paymentState == null ? "" : paymentState;
    }

    public void setPaymentState(String paymentState) {
        this.paymentState = paymentState;
    }

    public String getOrderState() {
        return orderState == null ? "" : orderState;
    }

    public void setOrderState(String orderState) {
        this.orderState = orderState;
    }

    public List<String> getServicePwd() {
        return servicePwd;
    }

    public void setServicePwd(List<String> servicePwd) {
        this.servicePwd = servicePwd;
    }

    public String getBeauticianId() {
        return beauticianId == null ? "" : beauticianId;
    }

    public void setBeauticianId(String beauticianId) {
        this.beauticianId = beauticianId;
    }

    public String getPhotoImage() {
        return photoImage == null ? "" : photoImage;
    }

    public void setPhotoImage(String photoImage) {
        this.photoImage = photoImage;
    }

    public String getName() {
        return name == null ? "" : name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address == null ? "" : address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getServiceTime() {
        return serviceTime == null ? "" : serviceTime;
    }

    public void setServiceTime(String serviceTime) {
        this.serviceTime = serviceTime;
    }

    public String getRemark() {
        return remark == null ? "" : remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreateTime() {
        return createTime == null ? "" : createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getPaymentTime() {
        return paymentTime == null ? "" : paymentTime;
    }

    public void setPaymentTime(String paymentTime) {
        this.paymentTime = paymentTime;
    }

    public String getOrderTotalPrice() {
        return orderTotalPrice == null ? "" : orderTotalPrice;
    }

    public void setOrderTotalPrice(String orderTotalPrice) {
        this.orderTotalPrice = orderTotalPrice;
    }

    public String getOrderAmount() {
        return orderAmount == null ? "" : orderAmount;
    }

    public void setOrderAmount(String orderAmount) {
        this.orderAmount = orderAmount;
    }

    public String getStoreId() {
        return storeId == null ? "" : storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getStoreName() {
        return storeName == null ? "" : storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getStoreTel() {
        return storeTel == null ? "" : storeTel;
    }

    public void setStoreTel(String storeTel) {
        this.storeTel = storeTel;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.gcId);
        dest.writeString(this.typeId);
        dest.writeString(this.orderId);
        dest.writeString(this.orderSn);
        dest.writeString(this.goodsId);
        dest.writeString(this.goodsName);
        dest.writeString(this.goodsPrice);
        dest.writeString(this.goodsImage);
        dest.writeString(this.goodsNum);
        dest.writeString(this.sellerState);
        dest.writeString(this.refundState);
        dest.writeString(this.refundId);
        dest.writeString(this.paymentState);
        dest.writeString(this.orderState);
        dest.writeStringList(this.servicePwd);
        dest.writeString(this.evaluationStatus);
        dest.writeString(this.grade);
        dest.writeString(this.beauticianId);
        dest.writeString(this.photoImage);
        dest.writeString(this.name);
        dest.writeString(this.address);
        dest.writeString(this.serviceTime);
        dest.writeString(this.remark);
        dest.writeString(this.createTime);
        dest.writeString(this.paymentTime);
        dest.writeString(this.couponPrice);
        dest.writeString(this.orderTotalPrice);
        dest.writeString(this.orderAmount);
        dest.writeString(this.storeId);
        dest.writeString(this.storeName);
        dest.writeString(this.storeTel);
        dest.writeString(this.isMainStore);
    }

    public ServiceOrderDetial() {
    }

    protected ServiceOrderDetial(Parcel in) {
        this.gcId = in.readString();
        this.typeId = in.readString();
        this.orderId = in.readString();
        this.orderSn = in.readString();
        this.goodsId = in.readString();
        this.goodsName = in.readString();
        this.goodsPrice = in.readString();
        this.goodsImage = in.readString();
        this.goodsNum = in.readString();
        this.sellerState = in.readString();
        this.refundState = in.readString();
        this.refundId = in.readString();
        this.paymentState = in.readString();
        this.orderState = in.readString();
        this.servicePwd = in.createStringArrayList();
        this.evaluationStatus = in.readString();
        this.grade = in.readString();
        this.beauticianId = in.readString();
        this.photoImage = in.readString();
        this.name = in.readString();
        this.address = in.readString();
        this.serviceTime = in.readString();
        this.remark = in.readString();
        this.createTime = in.readString();
        this.paymentTime = in.readString();
        this.couponPrice = in.readString();
        this.orderTotalPrice = in.readString();
        this.orderAmount = in.readString();
        this.storeId = in.readString();
        this.storeName = in.readString();
        this.storeTel = in.readString();
        this.isMainStore = in.readString();
    }

    public static final Parcelable.Creator<ServiceOrderDetial> CREATOR = new Parcelable.Creator<ServiceOrderDetial>() {
        @Override
        public ServiceOrderDetial createFromParcel(Parcel source) {
            return new ServiceOrderDetial(source);
        }

        @Override
        public ServiceOrderDetial[] newArray(int size) {
            return new ServiceOrderDetial[size];
        }
    };
}
